package de.tum.se.sudoku.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class SolveButtonActionListener implements ActionListener {

	private IGui gui;

	public SolveButtonActionListener(IGui gui) {
		super();
		this.gui = gui;
	}

	@Override
	public void actionPerformed(ActionEvent ae) {
		gui.refreshGui(gui.getSolver().solve(gui.getGrid()));
	}
}
